package my.test.visitor.source;

/**
 * @Author 许玉康
 * @Date 2019/10/8 10:39
 * 抽象元素
 */
public abstract class Element {
    //定义业务逻辑
    public abstract void doSomething();
    //允许谁来访问
    public abstract void accept(IVisitor visitor);
}
